using System;
using Df.Common.Forms.JsonFormatter;
using Df.Common.Forms.Validation;
using Newtonsoft.Json;

namespace Df.Common.Forms
{
    [FluentValidation.Attributes.Validator(typeof(TextBoxValidator))]
    [JsonConverter(typeof(ElementConverter))]
    public class DfTextBox : DfBaseElement, IInputElement
    {

        public virtual string Value
        {
            get;
            set;
        }

        public string GetValue()
        {
            return Value;
        }


        public bool IsRequired { get; set; }


        public string PlaceHolder { get; set; }
    }
}